// app.ts
App({


  globalData: {
    capsule: {},
    windowWidth: 0,
    statusBarHeight: 0,
    navBarHeight: 0,
  },
  onLaunch() {
    wx.getSystemInfo({
      success: (res) => {
        this.globalData.windowWidth = res.windowWidth
        this.globalData.statusBarHeight = res.statusBarHeight
        this.globalData.navBarHeight = 44 + res.statusBarHeight
      }
    })
    this.globalData.capsule = wx.getMenuButtonBoundingClientRect() //获取胶囊宽高及位置
  },

})